package com.zxinlee.order.controller;

import com.zxinlee.order.entity.Order;
import com.zxinlee.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/create")
    public String create(Order order){

        orderService.create(order);
        return "生成订单成功!";
    }
}
